package com.celesea.auth.position.service;

import com.celesea.auth.position.entity.PositionUser;
import com.celesea.auth.position.vo.PositionVo;
import com.celesea.framework.service.BaseService;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-11-23 20:52
 */
public interface PositionUserService extends BaseService<PositionUser> {
    List<PositionUser> findByPosition(String positionId);

    List<PositionUser> findByPosition(String positionId, String deptId);

    List<PositionUser> findByPosition(String positionId, List<String> deptIds);

    int deleteByPosition(PositionVo positionVo);

    int deleteByPosition(String positionId, String deptId);

    List<PositionUser> findByUser(String userId);

    int insertByPosition(PositionVo entity);

}
